import { HTTP } from '../utils/http.js'

class Firstpage extends HTTP {

    // 首页banner
    banner_list(objs) {
        return this.request({
        url: '/banner/banner_list',
        method: 'GET',
        header: {
        'content-type': 'application/x-www-form-urlencoded'
        },
        data: objs
        })
    }
    // 每日一句话
    one_word(objs) {
        return this.request({
        url: '/every_day_one_word/one_word',
        method: 'GET',
        header: {
        'content-type': 'application/x-www-form-urlencoded'
        },
        data: objs
        })
    }
    // 工会标签
    union_list(objs) {
        return this.request({
        url: '/labour_union/union_list',
        method: 'POST',
        header: {
        'content-type': 'application/x-www-form-urlencoded'
        },
        data: objs
        })
    }
    // 查看标签下的项目
    items_list(objs) {
        return this.request({
            url: '/items/items_list',
            method: 'POST',
            header: {
            'content-type': 'application/x-www-form-urlencoded'
            },
            data: objs
        })
    }

}

export { Firstpage }